<div id="content">
    <fieldset>
        <legend>Forgot Password</legend><br/>
        <?php
        $attributes = array('id' => 'forgotPW_form','name' => 'forgotPW_form');
        echo form_open('register/do_forgot_pw', $attributes);
        $email = array(
            'name' => 'email',
            'id' => 'email',
            'class' => 'required email',
            'size' => '28',
            'value' => set_value('email')
        );
        $url = site_url('register/valid_email');
        ?>
        <table>
            <tr>
                <td>Email</td>
                <td><?php echo form_input($email); echo form_hidden('forgotPW_url',$url) ?></td>
                <td id="msg"></td>
            </tr>
            <tr>
                <td><?php $att = array('class' => 'submit');
                    echo form_submit('forgotPW_submit', 'Send', $att); ?> </td>
            </tr>
        </table>
        <?php echo form_close(); ?>
    </fieldset>
</div>